package com.zqh.cli.commandPattern;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TurnOffCommand implements AbstractCommand{

    private Device device;

    @Override
    public void execute() {
        device.turnOff();
    }

}
